set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(QT_VERSION 5)
find_package(Qt${QT_VERSION} COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

set(EXE_NAME med)
add_executable(${EXE_NAME} main.cpp Solver.cpp Solver.h Widget.cpp Widget.h Widget.ui)
target_link_libraries(${EXE_NAME}
        Qt${QT_VERSION}::Core
        Qt${QT_VERSION}::Gui
        Qt${QT_VERSION}::Widgets
        )
